<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Java使用卡片布局管理器 - Gaowen_HAN的专栏 - 博客频道 - CSDN.NET</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="package com.han;import java.awt.BorderLayout;import java.awt.CardLayout;import java.awt.Container;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JBut">
<script src="7738643_files/log.js" async="" charset="utf-8"></script><script src="7738643_files/ga.js" async="" type="text/javascript"></script><script src="7738643_files/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="7738643_files/ad.js"></script>
<link rel="Stylesheet" type="text/css" href="7738643_files/style.css">
<link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="http://blog.csdn.net/Gaowen_HAN/rss/list">
<link rel="shortcut icon" href="http://blog.csdn.net/favicon.ico">
<link type="text/css" rel="stylesheet" href="7738643_files/default.css">
<link href="7738643_files/style_002.css" rel="stylesheet" type="text/css"></head>
<body>
<script src="7738643_files/pub_topnav_2011.js" type="text/javascript"></script><link rel="stylesheet" type="text/css" href="7738643_files/navtop_2012.css">
<div class="nav_top_2011">
<p><span style="color:red;">您还未登录！</span>|<a href="https://passport.csdn.net/account/login" target="_top">登录</a>|<a href="https://passport.csdn.net/account/register" target="_top">注册</a>|<a href="https://passport.csdn.net/help/faq" target="_blank">帮助</a></p><ul>
<li><a href="http://www.csdn.net/" target="_blank" style="color: red;">首页</a></li>
<li><a href="http://news.csdn.net/" target="_blank">业界</a></li>
<li><a href="http://mobile.csdn.net/" target="_blank">移动</a></li>
<li><a href="http://cloud.csdn.net/" target="_blank">云计算</a></li>
<li><a href="http://sd.csdn.net/" target="_blank">研发</a></li>
<li><a href="http://bbs.csdn.net/" target="_blank">论坛</a></li>
<li><a href="http://blog.csdn.net/" target="_blank">博客</a></li>
<li><a href="http://download.csdn.net/" target="_blank">下载</a></li>
<li class="more"><h2 id="topnav_btnmore" onclick="showNavMore(this)"><a href="javascript:void(0);">更多</a></h2>
<div id="topnav_hidlist">
<iframe name="nav_frm" src="7738643_files/a_002.htm" frameborder="no" height="178" scrolling="no" width="92"></iframe>
</div>
</li>
</ul>
</div>


<div id="container">
<div id="header">
    <div class="header">
        <div id="blog_title">
            <h1><a href="http://blog.csdn.net/Gaowen_HAN">Gaowen_HAN的专栏</a></h1>
            <h2>快速开发才是所有语言一致的目标——时间就是金钱</h2>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
</div>
<div id="navigator">
    <div class="navigator_bg"></div>
    <div class="navigator">
        <ul>
            <li id="btnContents"><a href="http://blog.csdn.net/Gaowen_HAN?viewmode=contents"><span><img src="7738643_files/ico_list.gif">目录视图</span></a></li>
            <li id="btnView"><a href="http://blog.csdn.net/Gaowen_HAN?viewmode=list"><span><img src="7738643_files/ico_summary.gif">摘要视图</span></a></li>
            <li id="btnRss"><a href="http://blog.csdn.net/Gaowen_HAN/rss/list"><span><img src="7738643_files/ico_rss.gif">订阅</span></a></li>
</ul>
    </div>
</div>
<script type="text/javascript">
    var username = "Gaowen_HAN";
    var _blogger = username;
    var blog_address = "http://blog.csdn.net/gaowen_han";
    var static_host = "http://static.blog.csdn.net";
    var currentUserName = "";
</script>

<div id="body">
<div id="main">
<div class="main">
<div class="notice"> 

<a href="https://code.csdn.net/blog/12" target="_blank">
<font color="red">公告：博客新增直接引用代码功能</font></a>



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://www.csdn.net/article/2013-07-24/2816320" target="_blank"><font color="blue">专访谭海燕：移动互联网开发的那些事
</font></a>

&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/csdnproduct/article/details/9226265" target="_blank">
<font color="red">CSDN博客频道自定义摘要、图片水印、热门标签等功能上线啦 


 </font></a>

&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://blog.csdn.net/blogdevteam/article/details/9136613" target="_blank">
<font color="red">CSDN博客第二期云计算最佳博主评选

 </font></a>


&nbsp;&nbsp;&nbsp;&nbsp;

<a href="" target="_blank">
<font color="blue">
 </font></a>




</div>
<div id="article_details" class="details">
    <div class="article_title">
    <span class="ico ico_type_Original"></span>
    <h3>
        <span class="link_title"><a href="http://blog.csdn.net/gaowen_han/article/details/7738643">
        Java使用卡片布局管理器
        </a></span>
    </h3>
</div>

        
    <div class="article_manage">
        <span class="link_categories">
        分类：
            <a href="http://blog.csdn.net/Gaowen_HAN/article/category/1023076">JAVA</a> 
        </span>
    <span class="link_postdate">2012-07-12 04:33</span>
    <span class="link_view" title="阅读次数">611人阅读</span>
    <span class="link_comments" title="评论次数"><a href="#comments">评论</a>(0)</span>
    <span class="link_collect"><a href="javascript:void(0);" onclick="javascript:collectArticle('Java使用卡片布局管理器','7738643');return false;" title="收藏">收藏</a></span>
    <span class="link_report"><a href="#report" onclick="javascript:report(7738643,2);return false;" title="举报">举报</a></span>
    
</div>
<div class="tag2box"><a href="http://blog.csdn.net/tag/details.html?tag=java" target="_blank">java</a><a href="http://blog.csdn.net/tag/details.html?tag=constructor" target="_blank">constructor</a><a href="http://blog.csdn.net/tag/details.html?tag=string" target="_blank">string</a><a href="http://blog.csdn.net/tag/details.html?tag=button" target="_blank">button</a><a href="http://blog.csdn.net/tag/details.html?tag=class" target="_blank">class</a><a href="http://blog.csdn.net/tag/details.html?tag=c" target="_blank">c</a></div>


    
<div id="article_content" class="article_content">

<p><img src="7738643_files/1342039159_9868.png" alt=""></p>
<p></p><div class="dp-highlighter bg_java"><div class="bar"><div class="tools"><b>[java]</b> <a href="#" class="ViewSource" title="view plain" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;">view plain</a><a href="#" class="CopyToClipboard" title="copy" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;">copy</a><a href="#" class="PrintSource" title="print" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;">print</a><a href="#" class="About" title="?" onclick="dp.sh.Toolbar.Command('About',this);return false;">?</a><div style="position: absolute; left: 831px; top: 505px; width: 18px; height: 18px; z-index: 99;"><embed id="ZeroClipboardMovie_1" src="7738643_files/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" name="ZeroClipboardMovie_1" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=1&amp;width=18&amp;height=18" wmode="transparent" align="middle" height="18" width="18"></div></div></div><ol class="dp-j" start="1"><li class="alt"><span><span class="keyword">package</span><span>&nbsp;com.han;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;</span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.BorderLayout;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;java.awt.CardLayout;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.Container;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;java.awt.event.ActionEvent;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;java.awt.event.ActionListener;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;</span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;javax.swing.JButton;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;javax.swing.JFrame;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;javax.swing.JLabel;&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">import</span><span>&nbsp;javax.swing.JPanel;&nbsp;&nbsp;</span></span></li><li class="alt"><span><span class="keyword">import</span><span>&nbsp;javax.swing.SwingConstants;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;</span></li><li class="alt"><span><span class="comment">/**</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;*&nbsp;使用卡片布局管理器</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;*&nbsp;@author&nbsp;HAN</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;*</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;*/</span><span>&nbsp;&nbsp;</span></span></li><li class=""><span><span class="keyword">public</span><span>&nbsp;</span><span class="keyword">class</span><span>&nbsp;CardLayout_1&nbsp;</span><span class="keyword">extends</span><span>&nbsp;JFrame&nbsp;{&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">/**</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">private</span><span>&nbsp;</span><span class="keyword">static</span><span>&nbsp;</span><span class="keyword">final</span><span>&nbsp;</span><span class="keyword">long</span><span>&nbsp;serialVersionUID&nbsp;=&nbsp;-5255525755443566487L;&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;CardLayout_1()&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//&nbsp;TODO&nbsp;Auto-generated&nbsp;constructor&nbsp;stub</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container&nbsp;container&nbsp;=&nbsp;getContentPane();&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">final</span><span>&nbsp;CardLayout&nbsp;cardLayout&nbsp;=&nbsp;</span><span class="keyword">new</span><span>&nbsp;CardLayout();&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">final</span><span>&nbsp;JPanel&nbsp;cardPanel&nbsp;=&nbsp;</span><span class="keyword">new</span><span>&nbsp;JPanel(cardLayout);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String[]&nbsp;cardNames&nbsp;=&nbsp;{&nbsp;<span class="string">"卡片A"</span><span>,&nbsp;</span><span class="string">"卡片B"</span><span>,&nbsp;</span><span class="string">"卡片C"</span><span>&nbsp;};&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">for</span><span>&nbsp;(</span><span class="keyword">int</span><span>&nbsp;i&nbsp;=&nbsp;</span><span class="number">0</span><span>;&nbsp;i&nbsp;&lt;&nbsp;cardNames.length;&nbsp;i++)&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span><span class="comment">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label&nbsp;=&nbsp;new&nbsp;JLabel(cardNames[i]);</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JLabel&nbsp;label&nbsp;=&nbsp;<span class="keyword">new</span><span>&nbsp;JLabel(cardNames[i],&nbsp;SwingConstants.CENTER);&nbsp;&nbsp;</span></span></li><li class=""><span><span class="comment">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardPanel.add(label);</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardPanel.add(label,&nbsp;cardNames[i]);&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;container.add(cardPanel,&nbsp;BorderLayout.CENTER);&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JPanel&nbsp;buttonPanel&nbsp;=&nbsp;<span class="keyword">new</span><span>&nbsp;JPanel();&nbsp;</span><span class="comment">//&nbsp;by&nbsp;default,&nbsp;the&nbsp;flow&nbsp;layout</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;container.add(buttonPanel,&nbsp;BorderLayout.SOUTH);&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String[]&nbsp;buttonNames&nbsp;=&nbsp;{&nbsp;<span class="string">"第一个"</span><span>,&nbsp;</span><span class="string">"前一个"</span><span>,&nbsp;</span><span class="string">"卡片A"</span><span>,&nbsp;</span><span class="string">"卡片B"</span><span>,&nbsp;</span><span class="string">"卡片C"</span><span>,&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="string">"后一个"</span><span>,&nbsp;</span><span class="string">"最后一个"</span><span>&nbsp;};&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">for</span><span>&nbsp;(</span><span class="keyword">int</span><span>&nbsp;i&nbsp;=&nbsp;</span><span class="number">0</span><span>;&nbsp;i&nbsp;&lt;&nbsp;buttonNames.length;&nbsp;i++)&nbsp;{&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">final</span><span>&nbsp;JButton&nbsp;button&nbsp;=&nbsp;</span><span class="keyword">new</span><span>&nbsp;JButton(buttonNames[i]);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buttonPanel.add(button);&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;button.addActionListener(<span class="keyword">new</span><span>&nbsp;ActionListener()&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="annotation">@Override</span><span>&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;actionPerformed(ActionEvent&nbsp;e)&nbsp;{&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//&nbsp;TODO&nbsp;Auto-generated&nbsp;method&nbsp;stub</span><span>&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;buttonText&nbsp;=&nbsp;button.getText();&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">if</span><span>&nbsp;(buttonText.equals(</span><span class="string">"第一个"</span><span>))&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardLayout.first(cardPanel);&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>&nbsp;(buttonText.equals(</span><span class="string">"前一个"</span><span>))&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardLayout.previous(cardPanel);&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>&nbsp;(buttonText.equals(</span><span class="string">"卡片A"</span><span>))&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardLayout.show(cardPanel,&nbsp;<span class="string">"卡片A"</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>&nbsp;(buttonText.equals(</span><span class="string">"卡片B"</span><span>))&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardLayout.show(cardPanel,&nbsp;<span class="string">"卡片B"</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>&nbsp;(buttonText.equals(</span><span class="string">"卡片C"</span><span>))&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardLayout.show(cardPanel,&nbsp;<span class="string">"卡片C"</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<span class="keyword">else</span><span>&nbsp;</span><span class="keyword">if</span><span>&nbsp;(buttonText.equals(</span><span class="string">"后一个"</span><span>))&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardLayout.next(cardPanel);&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<span class="keyword">else</span><span>&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cardLayout.last(cardPanel);&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">/**</span>&nbsp;</span></li><li class="alt"><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;args</span>&nbsp;</span></li><li class=""><span><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">public</span><span>&nbsp;</span><span class="keyword">static</span><span>&nbsp;</span><span class="keyword">void</span><span>&nbsp;main(String[]&nbsp;args)&nbsp;{&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="comment">//&nbsp;TODO&nbsp;Auto-generated&nbsp;method&nbsp;stub</span><span>&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CardLayout_1&nbsp;frame&nbsp;=&nbsp;<span class="keyword">new</span><span>&nbsp;CardLayout_1();&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frame.setTitle(<span class="string">"使用卡片布局管理器"</span><span>);&nbsp;&nbsp;</span></span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frame.setVisible(<span class="keyword">true</span><span>);&nbsp;&nbsp;</span></span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;frame.pack();&nbsp;&nbsp;</span></li><li class=""><span>&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</span></li><li class="alt"><span>&nbsp;&nbsp;</span></li><li class=""><span>}&nbsp;&nbsp;</span></li></ol></div><pre style="display: none;" name="code" class="java">package com.han;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

/**
 * 使用卡片布局管理器
 * @author HAN
 *
 */
public class CardLayout_1 extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5255525755443566487L;

	public CardLayout_1() {
		// TODO Auto-generated constructor stub
		Container container = getContentPane();
		final CardLayout cardLayout = new CardLayout();
		final JPanel cardPanel = new JPanel(cardLayout);
		String[] cardNames = { "卡片A", "卡片B", "卡片C" };
		for (int i = 0; i &lt; cardNames.length; i++) {
//			JLabel label = new JLabel(cardNames[i]);
			JLabel label = new JLabel(cardNames[i], SwingConstants.CENTER);
//			cardPanel.add(label);
			cardPanel.add(label, cardNames[i]);
		}
		container.add(cardPanel, BorderLayout.CENTER);
		JPanel buttonPanel = new JPanel(); // by default, the flow layout
		container.add(buttonPanel, BorderLayout.SOUTH);
		String[] buttonNames = { "第一个", "前一个", "卡片A", "卡片B", "卡片C",
				"后一个", "最后一个" };
		for (int i = 0; i &lt; buttonNames.length; i++) {
			final JButton button = new JButton(buttonNames[i]);
			buttonPanel.add(button);
			button.addActionListener(new ActionListener() {

				@Override
				public void actionPerformed(ActionEvent e) {
					// TODO Auto-generated method stub
					String buttonText = button.getText();
					if (buttonText.equals("第一个")) {
						cardLayout.first(cardPanel);
					} else if (buttonText.equals("前一个")) {
						cardLayout.previous(cardPanel);
					} else if (buttonText.equals("卡片A")) {
						cardLayout.show(cardPanel, "卡片A");
					} else if (buttonText.equals("卡片B")) {
						cardLayout.show(cardPanel, "卡片B");
					} else if (buttonText.equals("卡片C")) {
						cardLayout.show(cardPanel, "卡片C");
					} else if (buttonText.equals("后一个")) {
						cardLayout.next(cardPanel);
					}else {
						cardLayout.last(cardPanel);
					}
				}

			});
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		CardLayout_1 frame = new CardLayout_1();
		frame.setTitle("使用卡片布局管理器");
		frame.setVisible(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.pack();
	}

}
</pre><br>
<br>
<p></p>

</div>

<div class="share_buttons" id="sharePanel"><span>分享到：</span> <a name="sina" class="share_sina" title="分享到新浪微博"></a><a name="qq" class="share_qq" title="分享到腾讯微博"></a></div>
<!--192.168.100.34-->
<div class="article_next_prev">
    <li class="prev_article"><span>上一篇：</span><a href="http://blog.csdn.net/gaowen_han/article/details/7738642">Java使用箱式布局管理器</a></li>
    <li class="next_article"><span>下一篇：</span><a href="http://blog.csdn.net/gaowen_han/article/details/7738644">Java使用网格组布局管理器</a></li>
</div>


    
</div>
<div id="ad_cen">
<script type="text/javascript">BAIDU_CLB_SLOT_ID = "117306";</script>
<script type="text/javascript" src="7738643_files/o.js"></script><script charset="utf-8" src="7738643_files/ecom_002"></script><script type="text/javascript"><!--
google_ad_client = "ca-pub-1076724771190722";
/* blog正文下方728x90 */
google_ad_slot = "4497271841";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="7738643_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><ins id="aswift_0_anchor" style="display:block;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;" frameborder="0" height="90" scrolling="no" width="728"></iframe></ins></ins>
</div>
<script type="text/javascript">
    //new Ad(4, 'ad_cen');
</script>
<div id="comment_title" class="panel_head">查看评论<a name="comments"></a></div>
<div id="comment_list"><br>&nbsp;&nbsp;暂无评论<br><br><div class="clear"></div></div>
<div id="comment_bar"></div>
<div id="comment_form"><div class="guest_link">您还没有登录,请<a href="javascript:void(0);" onclick="javascript:csdn.showLogin(function (dat) {js_logined(dat.data.userName);});">[登录]</a>或<a href="http://passport.csdn.net/account/register?from=http%3A%2F%2Fblog.csdn.net%2Fgaowen_han%2Farticle%2Fdetails%2F7738643">[注册]</a></div></div>
<div class="announce">* 以上用户言论只代表其个人观点，不代表CSDN网站的观点或立场<a name="reply"></a><a name="quote"></a></div>
<script type="text/javascript">
    var fileName = '7738643';
    var commentscount = 0;
    var islock = false
</script>
<script type="text/javascript" src="7738643_files/comment.js"></script>
<div id="ad_bot"><iframe src="7738643_files/ad.htm" style="border-width: 0px; overflow: hidden; width: 732px; height: 170px;" id="ad_frm_0" frameborder="0" scrolling="no"></iframe></div>
<script type="text/javascript">
    new Ad(5, 'ad_bot');
</script>
<div id="report_dialog"></div>

<div id="d-top" style="">
<a id="d-top-a" href="#" title="回到顶部">
<img src="7738643_files/top.png" alt="TOP"></a>
</div>
<script type="text/javascript">
    $(function(){
        var d_top=$('#d-top');
        document.onscroll=function(){
            var scrTop=(document.body.scrollTop||document.documentElement.scrollTop);
            if(scrTop>500){
                d_top.show();
            }else{
                d_top.hide();
            }
        }
        $('#d-top-a').click(function(){
            scrollTo(0,0);
            this.blur();
            return false;
        });
    });
</script>

<div class="clear"></div>
</div>
</div>

<div id="side">
<div class="side">
<div id="panel_Profile" class="panel">
<ul class="panel_head"><span>个人资料</span></ul>
<ul class="panel_body profile">
<div id="blog_userface">
    <a href="http://my.csdn.net/Gaowen_HAN" target="_blank">
    <img src="7738643_files/1_gaowen_han.jpg" title="访问我的空间" style="max-width:90%">
    </a>
    <br>
    <span><a href="http://my.csdn.net/Gaowen_HAN" class="user_name" target="_blank">Gaowen_HAN</a></span>
</div>
<div class="interact">
<a href="javascript:void(0);" class="attent" id="span_add_follow" title="[加关注]"></a>
<a href="javascript:void(0);" class="letter" onclick="loginto(1)" title="[发私信]"></a>
</div>
<div id="blog_medal">
<div id="bms_box"><a href="http://medal.blog.csdn.net/allmedal.aspx" target="_blank"><img src="7738643_files/holdon_s2.gif" onmouseover="m_over_m(this,0)" onmouseout="m_out_m()" alt=""></a></div></div>
<ul id="blog_rank">
    <li>访问：<span>53251次</span></li>
    <li>积分：<span>1879分</span></li>
    <li>排名：<span>第4557名</span></li>
</ul>
<ul id="blog_statistics">
    <li>原创：<span>134篇</span></li>
    <li>转载：<span>0篇</span></li>
    <li>译文：<span>0篇</span></li>
    <li>评论：<span>22条</span></li>
</ul>
</ul>
</div>

<div class="panel">
<ul class="panel_body" style="padding:0;">
<script type="text/javascript" src="7738643_files/m.js"></script> 
<script type="text/javascript"> 
BAIDU_CLB_preloadSlots("724643","117306"); 
</script><script charset="utf-8" src="7738643_files/ecom"></script>
<script type="text/javascript">BAIDU_CLB_fillSlot("724643");</script><div id="baidu_clb_slot_724643"><iframe id="baidu_clb_slot_iframe_724643" src="7738643_files/a_002.htm" onload="BAIDU_CLB_renderFrame('724643')" vspace="0" hspace="0" allowtransparency="true" marginheight="0" marginwidth="0" style="border: 0; vertical-align: bottom; margin: 0; display: block;" frameborder="0" height="250" scrolling="no" width="200"></iframe></div> 
</ul>
</div>
<div class="panel" id="panel_Search">
    <ul class="panel_head"><span>文章搜索</span></ul>
    <ul class="panel_body">
        <form id="frmSearch" action="http://so.csdn.net/search" class="form_search" target="_blank">
        <span><input id="inputSearch" class="blogsearch" title="请输入关键字" type="text"></span>
        <input id="btnSubmit" value="搜索" title="search in blog" type="submit">
        <input name="q" id="inputQ" type="hidden">
        <input name="t" value="blog" type="hidden">
        <a id="btnSearchBlog" target="_blank"></a>
        </form>
    </ul>
</div><div id="panel_Category" class="panel">
<ul class="panel_head"><span>文章分类</span></ul>
<ul class="panel_body">
<li>
<a href="http://blog.csdn.net/gaowen_han/article/category/1023076">JAVA</a><span>(132)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/category/1070893">mood</a><span>(1)</span>
</li>
</ul>
</div><div id="panel_Archive" class="panel">
<ul class="panel_head"><span>文章存档</span></ul>
<ul class="panel_body">
<div id="archive_list"><li><a href="http://blog.csdn.net/gaowen_han/article/month/2013/07">2013年07月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2013/06">2013年06月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2013/03">2013年03月</a><span>(1)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/12">2012年12月</a><span>(6)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/11">2012年11月</a><span>(5)</span></li><span class="hidelist" style="display:none;"><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/08">2012年08月</a><span>(13)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/07">2012年07月</a><span>(27)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/06">2012年06月</a><span>(6)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/05">2012年05月</a><span>(14)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/04">2012年04月</a><span>(4)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/02">2012年02月</a><span>(11)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2012/01">2012年01月</a><span>(18)</span></li><li><a href="http://blog.csdn.net/gaowen_han/article/month/2011/12">2011年12月</a><span>(26)</span></li></span><div id="archive_list_button" class="list_closed">展开</div></div>
</ul>
</div>
<div id="hotarticls" class="panel">
<ul class="panel_head"><span>阅读排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7163737" title="JAVA实现实用的ZIP压缩与解压">JAVA实现实用的ZIP压缩与解压</a><span>(2487)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7163775" title="JAVA环境变量配置与配置后CMD的使用">JAVA环境变量配置与配置后CMD的使用</a><span>(1829)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7171893" title="JAVA遇到大批数据处理时会出现Java heap space的报错的解决方案">JAVA遇到大批数据处理时会出现Java heap space的报错的解决方案</a><span>(1537)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7171672" title="JAVA中JDialog的举例">JAVA中JDialog的举例</a><span>(1310)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7163073" title="JAVA实现二维数组的转置">JAVA实现二维数组的转置</a><span>(1285)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7163709" title="JAVA 基于TCP协议编写的Socket聊天室程序">JAVA 基于TCP协议编写的Socket聊天室程序</a><span>(1016)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7769340" title="Java Swing与线程的结合应用（三）">Java Swing与线程的结合应用（三）</a><span>(843)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7738644" title="Java使用网格组布局管理器">Java使用网格组布局管理器</a><span>(841)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7226544" title="JAVA Derby 查询数据库中表格是否存在">JAVA Derby 查询数据库中表格是否存在</a><span>(779)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7163770" title="JAVA实现图像缩放（通过 java.awt.geom的仿射变换结合java.awt.image的各种插值方法实现）">JAVA实现图像缩放（通过 java.awt.geom的仿射变换结合java.awt.image的各种插值方法实现）</a><span>(774)</span>
</li>
</ul>
</div>
<div id="hotarticls2" class="panel">
<ul class="panel_head"><span>评论排行</span></ul>
<ul class="panel_body itemlist">
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7163737" title="JAVA实现实用的ZIP压缩与解压">JAVA实现实用的ZIP压缩与解压</a><span>(8)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7163775" title="JAVA环境变量配置与配置后CMD的使用">JAVA环境变量配置与配置后CMD的使用</a><span>(4)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7251056" title="Java内存管理分析">Java内存管理分析</a><span>(3)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7738657" title="Java键盘事件监听(2)修改：使用监听键盘事件，而不是改写JTextField">Java键盘事件监听(2)修改：使用监听键盘事件，而不是改写JTextField</a><span>(2)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7171893" title="JAVA遇到大批数据处理时会出现Java heap space的报错的解决方案">JAVA遇到大批数据处理时会出现Java heap space的报错的解决方案</a><span>(2)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7769336" title="Java Swing与线程的结合应用（一）">Java Swing与线程的结合应用（一）</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7769338" title="Java Swing与线程的结合应用（二）">Java Swing与线程的结合应用（二）</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/8164720" title="Java JLayeredPane来实现窗口背景图片">Java JLayeredPane来实现窗口背景图片</a><span>(1)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7738658" title="Java监听鼠标事件">Java监听鼠标事件</a><span>(0)</span>
</li>
<li>
<a href="http://blog.csdn.net/gaowen_han/article/details/7738649" title="Java实现一种个性化的CheckBox">Java实现一种个性化的CheckBox</a><span>(0)</span>
</li>
</ul>
</div>
<div id="homepageArticles" class="panel">
<ul class="panel_head"><span>推荐文章</span></ul>
<ul class="panel_body" id="ad_commend"><iframe src="7738643_files/ad_002.htm" style="border-width: 0px; overflow: hidden; width: 196px; height: 272px;" id="ad_frm_1" frameborder="0" scrolling="no"></iframe></ul>
</div>
<script type="text/javascript">
 new Ad(12, 'ad_commend');
</script><div id="newcomments" class="panel">
<ul class="panel_head"><span>最新评论</span></ul>
<ul class="panel_body itemlist">
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7163737#comments">JAVA实现实用的ZIP压缩与解压</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/www314599782" class="user_name">银河缘木</a>:
不能解压文件夹
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7171893#comments">JAVA遇到大批数据处理时会出现Java heap space的报错的解决方案</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/zhangchao_nwsuaf" class="user_name">zhangchao_nwsuaf</a>:
写的挺详细，不错。要是能够标出每次更改core后的不同处，相信能够方便其他人理解你的思路。
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/8164720#comments">Java JLayeredPane来实现窗口背景图片</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/laohoubin" class="user_name">laohoubin</a>:
顶一个！！
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7163775#comments">JAVA环境变量配置与配置后CMD的使用</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/Gaowen_HAN" class="user_name">Gaowen_HAN</a>:
@ubodu2012:没有什么特殊的 我的就是JDK7，你用最简单的System,out.print...
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7163775#comments">JAVA环境变量配置与配置后CMD的使用</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/ubodu2012" class="user_name">ubodu2012</a>:
我现在用的是jdk7 设置上有没有注意的地方？path和class都设置了 但运行时提示无法加载主类...
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7738657#comments">Java键盘事件监听(2)修改：使用监听键盘事件，而不是改写JTextField</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/Gaowen_HAN" class="user_name">Gaowen_HAN</a>:
图形化的里面包含了获取被按下的按键的信息：e.getKeyCode()
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7738657#comments">Java键盘事件监听(2)修改：使用监听键盘事件，而不是改写JTextField</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/yanghuashuiyue" class="user_name">yanghuashuiyue</a>:
怎么都是图形化的键盘响应的，我需要直接获取被按下的按键的信息
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7769336#comments">Java Swing与线程的结合应用（一）</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/allan_chan" class="user_name">allan_chan</a>:
有没有swing相关的视频可以提供呀
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7769338#comments">Java Swing与线程的结合应用（二）</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/happy09li" class="user_name">难求</a>:
能多加点注释就好了
    </p>
    </li>
    <li>
    <a href="http://blog.csdn.net/Gaowen_HAN/article/details/7163737#comments">JAVA实现实用的ZIP压缩与解压</a>
    <p style="margin:0px;"><a href="http://blog.csdn.net/Gaowen_HAN" class="user_name">Gaowen_HAN</a>:
在我的电脑上没问题，我刚试过。我的电脑是windows法语系统，不过我觉得采用的是Unicode编码...
    </p>
    </li>
</ul>
</div>
</div>
<div class="clear"></div>
</div>

<div class="clear"></div>
</div>

<script type="text/javascript" src="7738643_files/newblog.js"></script>
<script type="text/javascript" src="7738643_files/showblogmedal.js"></script>

<script type="text/javascript">
document.write('<script type="text/javascript" src="http://csdnimg.cn/pubfooter/js/publib_footer.js?' + Math.floor(new Date()/120000).toString(36) + '="></'+'script>');
</script><script type="text/javascript" src="7738643_files/publib_footer.js"></script><link rel="stylesheet" type="text/css" href="7738643_files/pub_footer_2012.css"><div id="pub_footerall" class="pub_footerall"><dl><dt></dt> <dd><a href="http://www.csdn.net/company/about.html" target="_blank">公司简介</a>|<a href="http://www.csdn.net/company/recruit.html" target="_blank">招贤纳士</a>|<a href="http://www.csdn.net/company/marketing.html" target="_blank">广告服务</a>|<a href="http://www.csdn.net/company/account.html" target="_blank">银行汇款帐号</a>|<a href="http://www.csdn.net/company/contact.html" target="_blank">联系方式</a>|<a href="http://www.csdn.net/company/statement.html" target="_blank">版权声明</a>|<a href="http://www.csdn.net/company/layer.html" target="_blank">法律顾问</a>|<a href="mailto:webmaster@csdn.net">问题报告</a></dd><dd><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2355263776&amp;site=qq&amp;menu=yes" target="_blank" class="qq">QQ客服</a> <a href="http://e.weibo.com/csdnsupport/profile" target="_blank" class="weibo">微博客服</a> <a href="http://bbs.csdn.net/forums/Service" target="_blank" class="online">论坛反馈</a> <a href="mailto:webmaster@csdn.net" class="email">联系邮箱：webmaster@csdn.net</a> <span class="phone">服务热线：400-600-2320</span></dd><dd>京&nbsp;ICP&nbsp;证&nbsp;070598&nbsp;号</dd><dd>北京创新乐知信息技术有限公司 版权所有</dd><dd>世纪乐知(北京)网络技术有限公司 提供技术支持</dd><dd>江苏乐知网络技术有限公司 提供商务支持</dd><dd>Copyright © 1999-2012, CSDN.NET, All Rights Reserved&nbsp;<a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001032100010" target="_blank"><img src="7738643_files/gongshang_logos.gif" alt="GongshangLogo" title=""></a></dd></dl></div><script id="noticeScript" type="text/javascript" btnid="header_notice_num" wrapid="note1" count="5" subcount="5" src="7738643_files/notify.js"></script><script type="text/javascript" charset="utf-8" src="7738643_files/tracking.js"></script>

<script type="text/javascript" src="7738643_files/login.js"></script>
<script type="text/javascript">document.write("<img src=http://counter.csdn.net/pv.aspx?id=24 border=0 width=0 height=0>");</script><img src="7738643_files/pv.txt" border="0" height="0" width="0">
<script type="text/javascript" src="7738643_files/counter.js"></script><script type="text/javascript" charset="UTF-8" src="7738643_files/msg.js"></script>


<script type="text/javascript" src="7738643_files/ad-blog.js"></script><script type="text/javascript" src="7738643_files/ad-ms548.js"></script>


<script type="text/javascript" src="7738643_files/count.js"></script><iframe src="7738643_files/logs.htm" frameborder="0" height="0" width="0"></iframe>

</div>

<iframe src="7738643_files/log.swf" style="width: 1px; height: 1px; position: absolute; visibility: hidden;"></iframe><link type="text/css" rel="stylesheet" href="7738643_files/message_pop.css"><div id="_popup_msg_container" style="display: block;">

<div style="display: block; height: 240px;" wistate="max" id="im_popupWindow_miniMsg" class="im_popupWindow">
	<h6 class="wi_draggable"><span>Informatica资源热点推荐
</span><a onclick="_message_tips_pop('down');return false;"><img alt="close" class="founctionpic3" src="7738643_files/pic_close.gif"></a></h6>
    <div id="im_popupWindow_miniMsgContent" class="wi_content">
		<style type="text/css">
<!--
	#im2009 { position:relative; width:280px;  background-color:#FEF9F5; overflow:hidden;}
	#im2009 UL{ width:100%;  float:left; margin-left:0; padding:5px 10px; overflow:hidden;}
        .blue { line-height:120%;}
	.blue A:link { color:#100cff; text-decoration:none;}
	.blue A:visited { color:#100cff; text-decoration:none;}
	.blue A:active { color:#100cff; text-decoration:none;}
	.blue A:hover { color:#100cff; text-decoration:none;}
	
	.bottom { margin-bottom:0px; height:40px; padding:5px}
	.bottom A:link { color:#FF9900; text-decoration:none; font-size:12px;}
	.bottom A:visited { color:#FF9900; text-decoration:none; font-size:12px;}
	.bottom A:active { color:#FF9900; text-decoration:none; font-size:12px;}
	.bottom A:hover { color:#FF9900; text-decoration:none; font-size:12px;}
-->
        .Adela li { margin-top:0px; margin-bottom:5px; }
        .bottom { margin-top:10px; }
        </style>

     <div id="im2009" style="left: 0px; top: 0px; height: 200px; *height:180px">
                 <ul class="Adela">
      <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/2/1" target="_blank">1、Informatica PowerExchange</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/2/2" target="_blank">2、Informatica PowerExchange for Hadoop</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/2/1" target="_blank">3、Metadata Manager</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/2/3" target="_blank">4、卓越的数据集成性能与可靠性业务案例</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/2/3" target="_blank">5、通过实时的数据服务获取最大商业价值</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/3/1" target="_blank">6、Data Quality和Data Integration</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/3/1" target="_blank">7、Informatica：让数据起到应有的作用</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/3/2" target="_blank">8、Data Quality Analyst</a></li>
        <li class="blue"><a href="http://informatica.csdn.net/index/bigdata_inner/3/2" target="_blank">9、在您的SAP ERP系统中保持高水平的数据质量</a></li>

       </ul>
	</div>
	<div class="content_qq"><span onclick="window.open('')" target="_blank"></span>
 </div>
 
 
</div>
</div></div><img style="display: none;" src="7738643_files/count_new.htm"></body></html>